extends Att
class_name AzurAtt

var air setget set_air, get_air #航空
var gun setget set_gun, get_gun #炮击加成
var torpedo setget set_torpedo, get_torpedo #雷击加成

var healHpL setget set_healHpL, get_healHpL #治疗效果
var airL setget set_airL, get_airL #航空百分比

var minLimit = {
		"hp":-1.0, 
		"maxHp":-1.0, 
		"atk":-1.0, 
		"def":-1.0, 
		"mgiAtk":-1.0, 
		"reHp":-1.0, 
		"spd":-1.0, 
		"cd":-1.0, 
		"dod":-1.0, 
		"atkR":-1.0, 
		"defR":-1.0, 
		"maxHpL":-1.0, 
		"atkRan":-1.0,
		"air":-1.0,
		"mgiDef":-1.0, 
		"pen":-1.0, 
		"mgiPen":-1.0, 
		"cri":-1.0, 
		"criR":-1.0, 
		"suck":-1.0, 
		"mgiSuck":-1.0, 
		"reHpM":-1.0, 
		"atkL":-1.0, 
		"defL":-1.0, 
		"mgiAtkL":-1.0, 
		"mgiDefL":-1.0, 
		"penL":-1.0, 
		"mgiPenL":-1.0, 
		"torpedo":-1.0,
		"gun":-1.0,
		"healHpL":-1.0,
		"airL":-1.0
	}
func _init():
	info = {
		"hp":0.0, 
		"maxHp":0.0, 
		"atk":0.0, 
		"def":0.0, 
		"mgiAtk":0.0, 
		"reHp":0.0, 
		"spd":0.0, 
		"cd":0.0, 
		"dod":0.0, 
		"atkR":0.0, 
		"defR":0.0, 
		"maxHpL":0.0, 
		"atkRan":0.0,
		"air":0.0,
		"mgiDef":0.0, 
		"pen":0.0, 
		"mgiPen":0.0, 
		"cri":0.0, 
		"criR":0.0, 
		"suck":0.0, 
		"mgiSuck":0.0, 
		"reHpM":0.0, 
		"atkL":0.0, 
		"defL":0.0, 
		"mgiAtkL":0.0, 
		"mgiDefL":0.0, 
		"penL":0.0, 
		"mgiPenL":0.0, 
		"torpedo":0.0,
		"gun":0.0,
		"healHpL":0.0,
		"airL":0.0
	}

func set_air(val):
	info["air"] = val;emit_signal("onChange", "air")
func get_air():
	return info["air"]
func set_gun(val):
	info["gun"] = val;emit_signal("onChange", "gun")
func get_gun():
	return info["gun"]
func set_torpedo(val):
	info["torpedo"] = val;emit_signal("onChange", "torpedo")
func get_torpedo():
	return info["torpedo"]

func set_healHpL(val):
	info["healHpL"] = val;emit_signal("onChange", "healHpL")
func get_healHpL():
	return info["healHpL"]

func set_airL(val):
	info["airL"] = val;emit_signal("onChange", "airL")
func get_airL():
	return info["airL"]
